import {
  Controller,
  Get,
  Post,
  Body,
  Patch,
  Param,
  Delete,
} from '@nestjs/common';

import { DietFoodService } from './diet-food.service';
import { CreateDietFoodDto } from './dto/create-diet-food.dto';
import { UpdateDietFoodDto } from './dto/update-diet-food.dto';
import { ApiExcludeController } from '@nestjs/swagger';


@ApiExcludeController()
@Controller('app/diet-food')
export class DietFoodController {
  constructor(private readonly dietFoodService: DietFoodService) {}

  @Post()
  create(@Body() createDietFoodDto: CreateDietFoodDto) {
    return this.dietFoodService.create(createDietFoodDto);
  }

  @Get()
  findAll() {
    return this.dietFoodService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: number) {
    return this.dietFoodService.findOne(+id);
  }

  @Patch(':id')
  update(
    @Param('id') id: number,
    @Body() updateDietFoodDto: UpdateDietFoodDto,
  ) {
    return this.dietFoodService.update(+id, updateDietFoodDto);
  }

  @Delete(':id')
  remove(@Param('id') id: number) {
    return this.dietFoodService.remove(+id);
  }
}
